<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<style>

body{color:red ;
background-color:black;


}
/**/
img{
max-width:80%;
height:auto;
}

td#td0{
border-bottom:white 1px solid;
}

table{
border-collapse:collapse;
}  
  
</style>
<script type="text/javascript">
//显示网点列表
function showbankingoutletslist(){

//收款银行行别
e = document.getElementById("skyhhb");
var bank = e.value;
//收款行所属省份
e = document.getElementById("skhsssf");
var province = e.value;
//收款行所属城市
e = document.getElementById("skhsscs");
var city = e.value;
//关键字
e = document.getElementById("gjz");
var key = e.value;
var poststr = "bank="+bank+"&province="+province+"&city="+city+"&key"+key;

//获取网点列表
xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST","bankingoutletslist.xml",false);
xmlhttp.send(poststr);
bankingoutlets = xmlhttp.responseXML;
var x=bankingoutlets.getElementsByTagName("bankingoutlets");
var bankingoutletsstr = "";
for (var i=0,j=0;i<x.length;i++)
{

		  bankingoutletsstr += "<tr><td id= 'td0' name='";
		  bankingoutletsstr += x[i].attributes["name"].value;
		  bankingoutletsstr += "' id='";
		  bankingoutletsstr += x[i].attributes["id"].value;
		  bankingoutletsstr += "' onClick='selectbankingoutlets(this)'>";
		  bankingoutletsstr +=i+ x[i].attributes["name"].value;
		  bankingoutletsstr += "</td></tr>";
}
alert("asdf");
document.getElementById("bankingoutletslist").innerHTML = bankingoutletsstr;

//$("#bankingoutletslist").html(bankingoutletsstr);
//$("#bankingoutletslist").show();
};
</script>


<!-- 弹出page begin -->
<style>
* {margin:0;}
body {font-size:9pt;}
#container div{margin-top:6px;}
#select_city h3{float:left;}
#main_city,#all_province {clear:both;}
#main_city div,#all_province div{width:588px;clear:left;}
#main_city h4,#all_province h4{float:left;display:inline;font-size:16px;}
#main_city div span,#all_province div span{margin:0 9px;cursor:pointer;font-size:14px;}
#float_lay{width:220px;height:122px;border:1px #787878 solid;position:absolute;background:#fff;z-index:999;display:none;}
</style>
<script type="text/javascript">

function setPopupDiv(){
var popupDiv = document.getElementById("popupDiv");
popupDiv.style.position = "absolute";
popupDiv.style.border = "1px solid #ccc";
popupDiv.style.background = "#fff";
popupDiv.style.zIndex = 99;


var arrayPageSize   = getPageSize();
var bodyBack = document.createElement("div");
bodyBack.setAttribute("id","bodybg")
bodyBack.style.position = "absolute";
bodyBack.style.width = "100%";
bodyBack.style.height = (arrayPageSize[1] + 35 + 'px');
bodyBack.style.zIndex = 98;
bodyBack.style.top = 0;
bodyBack.style.left = 0;
bodyBack.style.filter = "alpha(opacity=50)";
bodyBack.style.opacity = 0.5;
bodyBack.style.background = "#ddf";

var mybody = document.getElementById("test");
insertAfter(popupDiv,mybody);
insertAfter(bodyBack,mybody);

}

function openLayer(objId,conId){

//var arrayPageScroll = getPageScroll();
if (!document.getElementById("popupAddr")){

setPopupDiv();

}

document.getElementById("bodybg").style.display = "";

var popObj=document.getElementById("popupDiv")
//popObj.innerHTML = document.getElementById(conId).innerHTML;
//document.getElementById(conId).innerHTML='';
//alert(popObj.innerHTML);


popObj.style.display = "";

popObj.style.top  = 10;
popObj.style.left = 10;
}






function insertAfter(newElement,targetElement){//≤Â»Î
var parent = targetElement.parentNode;
if(parent.lastChild == targetElement){
parent.appendChild(newElement);
}
else{
parent.insertBefore(newElement,targetElement.nextSibling);
}
}



function getPageSize(){
var xScroll,yScroll;
if (window.innerHeight  &&  window.scrollMaxY){
xScroll = document.body.scrollWidth;
yScroll = window.innerHeight + window.scrollMaxY;
} else if (document.body.scrollHeight > document.body.offsetHeight){
sScroll = document.body.scrollWidth;
yScroll = document.body.scrollHeight;
} else {
xScroll = document.body.offsetWidth;
yScroll = document.body.offsetHeight;
}
var windowWidth,windowHeight;
if (self.innerHeight) {
windowWidth = self.innerWidth;
windowHeight = self.innerHeight;
} else if (document.documentElement  &&  document.documentElement.clientHeight) {
windowWidth = document.documentElement.clientWidth;
windowHeight = document.documentElement.clientHeight;
} else if (document.body) {
windowWidth = document.body.clientWidth;
windowHeight = document.body.clientHeight;
}
var pageWidth,pageHeight
if(yScroll < windowHeight){
pageHeight = windowHeight;
} else {
pageHeight = yScroll;
}
if(xScroll < windowWidth) {
pageWidth = windowWidth;
} else {
pageWidth = xScroll;
}
arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize;
}

function closeLayer(){
document.getElementById("popupDiv").style.display = "none";
document.getElementById("bodybg").style.display = "none";
return false;
}
</script>

<!-- 弹出page end-->




<script type="text/javascript" src="browservariable.js"></script>

<script language="javascript">
variable = "";
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","city.xml",false);
xmlhttp.send();
china = xmlhttp.responseXML;

xmlhttp.open("GET","hangbielist.xml",false);
xmlhttp.send();
hangbieDoc = xmlhttp.responseXML;

xmlhttp.open("GET","account.xml",false);
xmlhttp.send();
mainmenulist_all = xmlhttp.responseText;

xmlhttp.open("GET","lishishoukuanren.xml",false);
xmlhttp.send();
historypayees = xmlhttp.responseText;




	 
navigation = "YES";
menuname = "kuahanghuikuan";
mainmenulist = getVariable(menuname);
if(mainmenulist == null){
mainmenulist=mainmenulist_all
setVariable(menuname,mainmenulist);
}


  form = document.createElement("form");	
  form.innerHTML = mainmenulist+historypayees;

  currentmenuelement = form.getElementsByTagName("tree")[0];

</script>



<html>
<head>
</head>

<body>


<card  title="跨行汇款" ></card>

<marquee>说明：跨行汇款交易时间为周一到周五</marquee>

<table id='transinfo' width = '100%' style=" word-break:break-all; font-size:13px;">
<tr >
<td width="70%" align='right'>转出账户：
</td>
<td><select id='zczh' name="trans_account" ></select>
</td>
</tr>
<tr >
<td align='right'>转账金额：
</td>
<td><input id= "zzje"name="trans_amount" type="input"></input>
</td>
</tr>
<tr>
<td align='right'>历史收款人：
</td>
<td></input><select onchange="handlerhistorypayee(this)"  id='lsskr' ></select>
</td>
</tr>
<tr >
<td align='right'>收款人姓名：
</td>
<td><input id='skrxm' name="payee_name" type="input"></input>
</td>
</tr>
<tr >
<td align='right'>收款账户开户网点2：
</td>
<td><input onclick="openLayer('test','test_con')"  readonly='readonly' type="text" size="12" name="skzhkhwd"></input>
</td>
</tr>
<tr >
<td align='right'>收款账户：
</td>
<td><input id= "skzh"name="payee_account" type="input"></input>
</td>
</tr>
<tr >
<td align='right'>
</td>
<td><input id= "confirmbutton"name="tijiao" type="button" value="确认转账信息"></input>
</td>
</tr>
</tr>
</table>







<!-- 确认信息 -->
<table id='confirmtable' width = '100%' style=" word-break:break-all; font-size:13px;">
</table>

<!-- 弹出page begin-->
<abc id="test" value="popabc" type="button" onclick="openLayer('test','test_con')" />
<div id="popupDiv" style="display:none">
<div id="tab" style="padding:8px;">

<div id="tabcontent">



<table id='bankingoutlets'>
<tr class='net1'>
<td align='right'>收款银行行别：
</td>
<td><select id='skyhhb' name="bank"></select>
</td>
</tr>
<tr class='net1'>
<td align='right'>收款行所属省份：
</td>
<td><select onchange='handlershi(this)' id='skhsssf' name='province'></select>
</td>
</tr>
<tr class='net1' >
<td align='right'>收款行所属城市：
</td>
<td><select  id='skhsscs' name='city'></select>
</td>
</tr>
<tr  class='net1'>
<td align='right'>关键字：
</td>
<td><input id= 'gjz'name='key' type="input"></input>
</td>
</tr>
<tr  class="net1">
<td align='right'><button type="button" onclick = "showbankingoutletslist()" >查询网点</button>
</td>
<td><button type="button" onclick="closeLayer()" id="showtransinfo">取消</button>
</td>
</tr>
</table>

<!-- 网点信息 -->
<table id='bankingoutletslist' width = '100%' style=" word-break:break-all; font-size:13px;">
</table>




</div>
</div>
</div>
<!-- 弹出page end-->




</body>
</html> 





<script language="javascript">



  	select = document.getElementById("zczh");
	accounts = form.getElementsByTagName("account");
	
	
	for(i=0;i<accounts.length;i++){
	   var varItem = new Option(accounts[i].attributes['type'].value+":"+accounts[i].attributes['no'].value,accounts[i].attributes['no'].value);
	   select.options.add(varItem);
	   
	}
	
	
	select = document.getElementById("skyhhb");
	hangbies = hangbieDoc.getElementsByTagName("bank");
	//alert(hangbies.length);
	for(i=0;i<hangbies.length;i++){
	//alert(hangbies[i].attributes['name'].value);
	   var varItem = new Option(hangbies[i].attributes['name'].value,hangbies[i].attributes['id'].value);
	   select.options.add(varItem);
	}
	
	select = document.getElementById("skhsssf");
	shengs = china.getElementsByTagName("province");
	//alert(hangbies.length);
	for(i=0;i<shengs.length;i++){
	//alert(hangbies[i].attributes['name'].value);
	   var varItem = new Option(shengs[i].attributes['name'].value,shengs[i].attributes['id'].value);
	   select.options.add(varItem);	    
	}
	
	select = document.getElementById("lsskr");
	historypayees = form.getElementsByTagName("historypayee");
	for(i=0;i<historypayees.length;i++){
	//alert(hangbies[i].attributes['name'].value);
	   var varItem = new Option(historypayees[i].attributes['name'].value+":"+historypayees[i].attributes['account'].value,historypayees[i].attributes['account'].value);
	   select.options.add(varItem);
	}


function handlershi(ee){ 

	e=document.getElementById("skhsssf");
	//alert(e.value);
    shengs = china.getElementsByTagName("province");
	
//	shengselected = form.getElementById(e.value);
//	alert(shengselected.innerHTML);
//	alert(shengs);
	shengselected=null;
	for(i=0;i<shengs.length;i++){
	    if(e.value == shengs[i].attributes['id'].value){
		    shengselected=shengs[i];
			break;
		}
	}
	select = document.getElementById("skhsscs");
	select.innerHTML = '';
	shis = shengselected.getElementsByTagName("city");
	//alert(hangbies.length);
	for(i=0;i<shis.length;i++){
	//alert(hangbies[i].attributes['name'].value);
	   var varItem = new Option(shis[i].attributes['name'].value,shis[i].attributes['id'].value);
	   select.options.add(varItem);
	}
	
	
}
function handlerhistorypayee(e){
	selecthistory ='';
	historypayees = form.getElementsByTagName("historypayee");
	for(i=0;i<historypayees.length;i++){ 
	
	
        if(e.value == historypayees[i].attributes['account'].value){
		    selecthistory=historypayees[i];
			break;
		}
	}

//收款人姓名
e = document.getElementById("skrxm");
e.value = selecthistory.attributes['name'].value;
 

//收款银行行别
e = document.getElementById("skyhhb");
e.value = selecthistory.attributes['bank'].value;
// //收款行所属省份
e = document.getElementById("skhsssf");
e.value = selecthistory.attributes['province'].value;
//alert(selecthistory.attributes['province'].value);

////收款行所属城市
e = document.getElementById("skhsscs");
e.value = selecthistory.attributes['city'].value;


////收款账户
e = document.getElementById("skzh");
e.value=selecthistory.attributes['account'].value;

////转账金额：
//e = document.getElementById("zzje");
//setVariable("zzje",e.value);



//收款账户开户网点：
//alert(selecthistory.attributes['bankingoutlets'].value);
e = document.getElementById("skzhkhwd");
e.value = selecthistory.attributes['bankingoutlets'].value;

    
}



</script>



